package com.huixi.microspur.sysadmin.pojo.entity.chat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.huixi.microspur.commons.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 聊天室-聊天记录
 * </p>
 *
 * @author xzl
 * @since 2020-01-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wj_chat_record")
@ApiModel(value="WjChatRecord对象", description="聊天室-聊天记录")
public class WjChatRecord extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "chat_record_id", type = IdType.ASSIGN_UUID)
    private String chatRecordId;

    @ApiModelProperty(value = "聊天室id")
    @TableField("chat_id")
    private String chatId;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "聊天的次序（谁说在前，谁说在后）")
    @TableField("chat_order")
    private Integer chatOrder;

    @ApiModelProperty(value = "聊天的内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "内容类型（1：文字 2：图片 3：视频）")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "创建人")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty(value = "修改人")
    @TableField("update_by")
    private String updateBy;



}
